//---------------------------------------------------------------------------

#ifndef t_listformH
#define t_listformH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Grids.hpp>
//---------------------------------------------------------------------------
class TListForm : public TForm
{
__published:	// IDE-managed Components
   TPanel *Panel1;
   TLabel *Label1;
   TEdit *EditText;
   TButton *ButtonFilter;
   TPanel *Panel2;
   TPanel *Panel3;
   TButton *ButtonGotoThisGroup;
   TStringGrid *StringGrid1;
   void __fastcall ButtonFilterClick(TObject *Sender);
   void __fastcall ButtonGotoThisGroupClick(TObject *Sender);
   void __fastcall StringGrid1SelectCell(TObject *Sender, int ACol, int ARow, bool &CanSelect);

private:	// User declarations
   void __fastcall Filter(map<UTF8String, HJobListInfo> &NewJobList);
   void __fastcall UpdateButtons(int Row);
   map<UTF8String, HJobListInfo> JobMap;
   map<UTF8String, HJobListInfo> JobList;
public:		// User declarations
   __fastcall TListForm(TComponent* Owner);
   void __fastcall Clear();
   void __fastcall Reload();
   void __fastcall AssignRows();
   void __fastcall AssignOneRow(int RowIdx, const HJobListInfo &Info);
};
//---------------------------------------------------------------------------
extern PACKAGE TListForm *ListForm;
//---------------------------------------------------------------------------
#endif
